home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ewebedit / demo.cfm < prev    next >
Encoding:
Text File  |  1999-06-27  |  2.4 KB  |  66 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html>
  3. <head>
  4.     <title><CF_WebEditor> Demo</title>
  5. </head>
  6. <body>
  7. <cfif IsDefined("Button")>  <!--- Post to itself, If we Button is defined then don't show the editor, just display the data from the Hidden Field --->
  8.     <cfoutput>#texthtml1#</cfoutput>
  9. <cfelse>
  10.     <cfform action="" method="POST" enablecab="No" name="frmMain">
  11.     
  12.     <!--- CF_WebEditor: 
  13.          codebase=path to the directory, If left blank then local path
  14.          version=Version number needs to agree with CAB file version numberl
  15.          license= If you run your browser on the local server the editor will work 127.0.0.1 means your local machine, we also test for C: and no license is required
  16.          license2= Support 2 license key for the production server and test server.
  17.          font= We globaly set the Font
  18.          width= Width of the Editor Control
  19.          height= Height of the Editor Conrol
  20.          htmlcode=When the editor starts, what is written to this field will show up in the editor.
  21.          editorsinform=the number of editors in the form)
  22.          editornumber=the number of the current editor in the form                 
  23.          form="frmMain"   The control will need to be in a form so when you post the form the returnfield is posted as a hidden field
  24.          button="Button">  The name="XXXXX" of the Button used to submit the form.
  25.  --->
  26.     
  27.     <CF_WebEditor 
  28.         codebase=""
  29.         version="2,3,0,0"
  30.         license="127.0.0.1?650630331830908"
  31.         License2="localhost?850330421323576"
  32.         License3=""
  33.          font="Arial"
  34.         width="565"
  35.         height="400"
  36.         htmlcode=""
  37.         form="frmMain"
  38.         EditorNumber="1"
  39.         EditorsInForm="1"
  40.         button="Button"
  41.         AllowCustomize="True"
  42.         ButtonsEdit="True"
  43.         ButtonsFontSize="True"
  44.         ButtonsFontStyle="True"
  45.         ButtonsFontColor="True"
  46.         ButtonsBullets="True"
  47.         ButtonsIndent="True"
  48.         ButtonsAlign="True"
  49.         ButtonsHyperlink="True"
  50.         ButtonsPicture="True"
  51.         ButtonsAbout="True"
  52.         FTPServer="ftp.idontknow.com/ewebedit/images"
  53.         FTPUsername="username"
  54.         FTPPassword="encryptedpassword"
  55.         ImagesPath="../images"
  56.         WDDX="<field name='IMAGE_TITLE'><string>Company Logo</string></field><field name='IMAGE_LOCATION'><string>images/logo.jpg</string></field><field name='FONT_FACE'><string>Arial</string><string>New Times Roman</string></field>"
  57.     >
  58. <!--- WDDX packet, see edit.cfm using the cfwddx tag, but this is to show a simple example --->
  59.     
  60.         <br>
  61.         <input type="submit" name="Button" value="Submit">        
  62.     </cfform>
  63. </cfif>
  64. </body>
  65. </html>
  66.